package com.sprouting.personal.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sprouting.personal.dao.ExpenseMemberDao;
import com.sprouting.personal.model.entity.ExpenseMember;
import com.sprouting.personal.model.vo.ExpenseMemberVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 账单使用人
 *
 * @author ：LX（长沙麓谷）
 * @date 创建时间： 2022/12/28 16:03
 */
@Service
@Slf4j
public class ExpenseMemberService extends ServiceImpl<ExpenseMemberDao, ExpenseMember> {

    @Resource
    private ExpenseMemberDao expenseMemberDao;


    /**
     * 根据账单ID查询账单使用人
     * @param idList 账单ID
     * @return
     */
    public List<ExpenseMemberVo> getExpenseMemberByBillIdList(List<String> idList) {
        return expenseMemberDao.getExpenseMemberByBillIdList(idList);
    }
}
